Common Vim shortcut keys and keyboard diagrams, and vim shortcut keys and keyboards
Common Vim shortcut keys
H-move the cursor one character left. j-move the cursor one character down.
K-move the cursor up one character l-move the cursor down one character to 15 rows-15j
Ctrl + f-move one page down on the screen Ctrl
Vi (Vim) keyboard chart and its basic commands
Vi (Vim) keyboard chart and its basic commands:
Go to vi
Vi filename open or create a file and place the cursor at the beginning of the first line
Vi + n filename open the file and place the cursor at the beginning of line n
Vi + filename open the file and place the curso
Linux editor Vim keyboard details
The Vim keyboard in the Linux editor is detailed. The figure below is clear at a glance. From then on, learning is no longer difficult!
Note:If there is no search or replacement in the figure, use the following.Top-down search operations/lowercase n and N of wordBottom-up search op
Vim keyboard mapping (map) Setting keyboard mappingUsing the: Map command, you can bind a key on the keyboard to the VIM command. For example, using the following command, you can enclose the word in curly braces with the F5 key:: Map Where: i{will insert the character {, th
How can I configure vim to automatically add the script running environment, author, email, script description, and other information during shell script development using vim? I found some information online, and finally found some information. paste the vimrc configuration file.
Cat ~ /. Vimrc
"Set the copyright statement"Add or update Headers"Map the F4 function key on the
For users who often need to switch to Linux/Unix terminals, VI is often used to edit text. EmacsAlthough powerful, it is more steep to learn, and some systems do not have Emacs by default. For those who do not have a lot of attention about VI, maybe they will be used for January 1, year 45,I, O, DD,: WQ, direction keys move cursor ears, Y, P copy and paste are rarely used.
I always thought that since I often use a software, I would try to use it as much as possible to improve efficiency for my
Is definitely a boutique, strongly not exclusive, Vi/vim keyboard map. VI is first used in Unix system, it is a text editor, almost all Unix-like machines are provided, learning Linux will need to learn vi/vim, familiar with this keyboard diagram, can help you learn vi/vim.
But for beginners, Vim is a very cool tool, because it has a variety of use environments and the keyboard operations are complex and hard to remember. But once you have mastered the basic use of Vim, you will immediately like it, and your work efficiency will be greatly improved. After you start Vim, the normal mode is
Vi/vim Keyboard Diagram-----Another desktop background good pictureMaybe there are a lot of people who are not willing to use the CLI vi/vim to write things, but when you really get used to it, its efficiency is immeasurable. The following picture, a look to understand, from now on, learning becomes no longer difficult ^_^Fill in the note:There is no search and r
Maybe there are a lot of people who are not willing to use the CLI vi/vim to write things, but when you really get used to it, its efficiency is immeasurable. The following picture, a look to understand, from now on, learning becomes no longer difficult ^_^Fill in the note:There is no search and replace in the figure, which should be used below.Top-down lookup operations /word lowercase N and NBottom-up lookup operations
command, you can also start VI with the-r option.: Recover Recover filesOption settingsTo control different editing functions, VI offers many internal options. Use the: Set command to set options. The basic syntax is:: Set option Settings optionsCommon feature options include the following:Autoindent Set this option, the body is automatically indentedignorecase Set this option, the difference between uppercase and lowercase letters in the rule expression is ignoredNumber sets this option to dis
VIM Chinese document, keyboard diagram, command diagram! Come with an embedded English book: One of the rewards in July. -- Debian information of the Linux release-the following is a detailed description. [I = s] This post was last edited by Liu Chong at, September 13 ,.
All resources are reposted from the Internet. Thank you! If you have any objection, please delete the post. I have downloaded the Chine
consecutivelyDD-delete a whole line ndd-delete the down n rows of the cursorD1G-delete the line from the cursor to the first line DG-delete the line from the cursor to the last rowd$-delete cursor at end of line D0-delete cursor at beginning of rowYY-the line where the copy cursor is NYY-the next n line where the copy cursor is locatedY1G-Copy the current line to the first line YG-Copy the current line to the last rowY0-Copy current cursor to beginning y$-copy current cursor to end of lineP-pas
characters consecutivelyDD-delete a whole line ndd-delete the down n rows of the cursorD1G-delete the line from the cursor to the first line DG-delete the line from the cursor to the last rowd$-delete cursor at end of line D0-delete cursor at beginning of rowYY-the line where the copy cursor is NYY-the next n line where the copy cursor is locatedY1G-Copy the current line to the first line YG-Copy the current line to the last rowY0-Copy current cursor to beginning y$-copy current cursor to end o
Http://www.cnblogs.com/JessonChan/archive/2010/11/25/1888020.htmlFill in the note:There is no search and replace in the figure, which should be used below.Top-down lookup operations /word lowercase N and NBottom-up lookup operations ? Word lowercase N and NNormal Replace operation : S/old/newThe current line is matched and replaced, and the command replaces all of the first matching characters in the current line with all of the substi
The following picture, a look to understand, from now on, learning becomes no longer difficult!Fill in the note:There is no search and replace in the figure, which should be used below.Top-down lookup operations/word lowercase n and NBottom-up lookup operations? Word lowercase N and NNormal Replace operation: S/old/newThe current line is matched and replaced, and the command replaces all of the first matching characters in the current line with all of the substitution operations: s/old/new/gThe
cases, you can use Vim as VI.I also downloaded the use of the Vim editor, I used the XP system, before the Linux SuSE also used VI, the personal feeling is vim relative to VI, the extension is stronger, used VI when the CTRL+S and CTRL + Z is not used (should not remember the wrong), But vim can do it.After installing
:
Exit command is, press ESC to jump to command mode, and then enter: Q (not saved) or: Wq (save) exit. more exit Commands:
: w save file but not exit VI: W file will be modified to save in file, do not exit VI: w! Mandatory save, do not launch VI: Wq save file and Exit VI: wq! Force file to save and Exit VI: Q Do not save files, exit VI: q! Do not save file, Force exit VI: e! Discard all modifications and edit command history from the last save file
Commands with: and/start with history, you ca
Vim note (6) -- a more comprehensive introduction of vim (for example, vim -- vim)
Vim configuration file~ /. Vimrc user's default configuration file ~ /. Vim/plugin/user's default script file storage directory ~ /.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.